package com.sxhuayuan.parking.plugin.parking.result;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class BaseResultWrap implements Serializable {
	private static final long serialVersionUID = 9051347652191821888L;

	private Boolean isSuccess = true;

	private String msg;

	/** 为了获取车场服务器的时间，可为空 */
	private Date time;

	@JSONField(serialize = false)
	private Extras extras = new Extras();

	public Boolean getIsSuccess() {
		return isSuccess;
	}

	public BaseResultWrap(Boolean isSuccess, String msg) {
		super();
		this.isSuccess = isSuccess;
		this.msg = msg;
	}

	public void setIsSuccess(Boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getExtraMchid() {
		return extras.mchid;
	}

	public void setExtraMchid(String mchid) {
		extras.mchid = mchid;
	}

	public String getExtraPluginId() {
		return extras.pluginId;
	}

	public void setExtraPluginId(String pluginId) {
		extras.pluginId = pluginId;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	class Extras implements Serializable {
		private static final long serialVersionUID = 1L;
		// 车场编号
		String mchid;
		String pluginId;
	}
}
